#!/bin/bash

SAVED_CLASSPATH=$CLASSPATH
CLASSPATH=/usr/websm/codebase/pluginjars/hmcdebug.jar:/opt/hsc:/usr/websm/codebase/wsm.jar:/usr/websm/codebase/pluginjars/sniacimom.jar:/usr/websm/codebase/pluginjars/xerces.jar:/usr/websm/codebase/pluginjars/HwmcaCommon.jar:/usr/websm/codebase/pluginjars/auifw.jar:$CLASSPATH 
export CLASSPATH
export PATH=/opt/IBMJava2-13/jre/bin:$PATH
export LD_LIBRARY_PATH=/opt/hsc/lib/hmcjni:$LD_LIBRARY_PATH
#echo $CLASSPATH

java -Djavax.net.ssl.keyStore=/usr/websm/codebase/SM.pubkr -Djavax.net.ssl.keyStorePassword=defp -DcimomConfigFile=/opt/hsc/data/cimomcfg.properties com.ibm.hsc.common.util.ListHSC ${1} ${2} ${3} ${4} ${5} ${6} ${7} ${8} ${9} 
# Note, for the above command, 9 command line arguments should be sufficient
LSHSC_RC=$?

CLASSPATH=SAVED_CLASSPATH
export CLASSPATH

exit $LSHSC_RC
